package org.javastudy.tang.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * <p><em>Created on 2021/12/13 10:44 上午</em></p>
 *
 * @author fuzhongtang
 * @since 1.0.1
 */
public class UserServiceImpl extends UnicastRemoteObject implements UserService{

    protected UserServiceImpl() throws RemoteException {
    }

    @Override
    public String sayHelloToMe(String userName) throws RemoteException {
        return "I love Y: "+userName;
    }
}
